"""
客户端
"""
import socket

c = socket.socket()
c.connect(('127.0.0.1', 8000))
print('大写转换客户端')
while True:  # 消息循环
    msg = input('输入信息:').strip()
    if not msg: continue
    c.send(msg.encode('utf8'))
    re_msg = c.recv(1024).decode('utf8')
    print(re_msg)

c.close()
